﻿using System;

namespace housingsafety.server.Caching.Core
{
    public interface ICacheSerializer
    {
        byte[] Serialize<TItem>(TItem item);

        TItem Deserialize<TItem>(byte[] data);

        object Deserialize(byte[] data, Type type = null);
    }
}
